<%--
  Created by IntelliJ IDEA.
  User: 86131
  Date: 2021/8/20
  Time: 17:12
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!doctype html>
<html lang="zh-CN">
<head>
  <meta charset="utf-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->
  <title>12588_一按我帮你</title>

  <!-- Bootstrap -->
  <link rel="stylesheet" href="css/bootstrap.min.css">
  <!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
  <script src="js/jquery.min.js"></script>
  <!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
  <script src="js/bootstrap.min.js"></script>

  <style>
    .paddtop{
      padding-top: 5px;
    }
    .search-input{
      float:left;
      border:2px dodgerblue solid;
      width: 400px;
      height: 35px;
      padding-left: 5px;
      margin-top: 5px;
      margin-left: 60px;
    }
    .search-btn{
      float:left;
      border: 1px dodgerblue solid;
      width: 90px;
      height: 35px;
      background-color: dodgerblue;
      text-align: center;
      line-height: 35px;
      color: white;
      margin-top: 5px;
    }
    .login{
      margin-top: 12px;

    }
    .gn{
      border-bottom: 2px dodgerblue solid;
    }
    .query{
      border: 1px darkgray solid ;
    }
    .padleft{
      padding-left: 100px;
    }
    .cha{
      padding-top: 5px;
    }
    .foot{
      background-color:dodgerblue ;
      text-align: center;
      height: 35px;
      line-height: 35px;
      color: white;
    }
    #main{
      height: 700px;
    }

  </style>
  <script>
    $(function (){
      $('#menux a').click(function (){
        console.log($(this).attr("url"));
        $('iframe').attr("src",$(this).attr("url"));
      })
      $('#menux li').click(function (){
        $(this).addClass("active");
        $(this).siblings().removeClass("active");
        // 获取当前点击li 的下标
        let index = $(this).index() + 1;
        console.log(index);
      })
    })
  </script>

</head>
<body>
<!--页眉部分-->
<header class="container-fluid">
  <div class="row paddtop">
    <div class="col-md-3 col-xs-2 col-sm-2">
      <img src="./img/logo.jpg" height="80px"  class="img-responsive">
    </div>
    <div class="col-md-8 col-xs-8 ">
      <form action="${pageContext.request.contextPath}/TrainRunningPassengerServlet">
      <input class="search-input" type="text" placeholder="请输入车次" name="trainNumber">
      <button class="search-btn" type="submit">搜索</button>
      </form>
    </div>
    <div class="col-md-1 login col-xs-8" >
      欢迎您！${passengerINFO.userName}
    </div>
  </div>
  <div class="row">
    <nav class="navbar navbar-inverse">
      <div class="container-fluid">
        <!-- Brand and toggle get grouped for better mobile display -->
        <div class="navbar-header">
          <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
            <span class="sr-only">Toggle navigation</span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </button>
          <a class="navbar-brand" href="#">12588火车</a>
        </div>

        <!-- Collect the nav links, forms, and other content for toggling -->
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
          <ul id="menux" class="nav navbar-nav">
            <li class="active"><a href="javascript:void(0);" url="search.jsp">首页<span class="sr-only">(current)</span></a></li>
            <li><a href="javascript:void(0);" url="${pageContext.request.contextPath}/PassengerINFOServlet">乘客信息</a></li>
            <li><a href="javascript:void(0);" url="${pageContext.request.contextPath}/TicketServlet">购票信息</a></li>
            <li><p class="navbar-text">改签</p></li>
          </ul>

        </div><!-- /.navbar-collapse -->
      </div><!-- /.container-fluid -->
    </nav>
  </div>
</header>
<!--主体部分-->
<div class="container-fluid" id="main">
  <iframe src="search.jsp" frameborder="0" width="100%" height="100%" frameborder="0px" style="padding: 0px;margin: 0px"></iframe>
</div>
<!--页脚部分-->
<%--<footer class="container-fluid">--%>
<%--  <div class="row">--%>
<%--    <div class="col-md-12  foot">--%>
<%--      <sapn>山东大学 成凯 201900301250 19软件工程6班</sapn>--%>
<%--    </div>--%>
<%--  </div>--%>
<%--</footer>--%>
</body>
</html>
